package com.ygqh.baby.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.model.YgProductRecommendModel;
import com.ygqh.baby.po.YgProductRecommend;
import com.ygqh.baby.po.YgProductRecommendExample;
public interface YgProductRecommendMapper {
    int countByExample(YgProductRecommendExample example);

    int deleteByExample(YgProductRecommendExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgProductRecommend record);

    int insertSelective(YgProductRecommend record);

    List<YgProductRecommend> selectByExample(YgProductRecommendExample example);

    YgProductRecommend selectByPrimaryKey(Long groupId);

    int updateByExampleSelective(@Param("record") YgProductRecommend record, @Param("example") YgProductRecommendExample example);

    int updateByExample(@Param("record") YgProductRecommend record, @Param("example") YgProductRecommendExample example);

    int updateByPrimaryKeySelective(YgProductRecommend record);

    int updateByPrimaryKey(YgProductRecommend record);
    
    int countSuper(@Param ("q") String q);
    
    List<YgProductRecommend> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q);
    
    YgProductRecommend selectByGroupKey(Long groupId);
    
    List<YgProductRecommendModel> selectProductByGroupKey(@Param("queryInfo") QueryInfo queryInfo, 
    		@Param ("groupId") Long groupId);
    
}



